<?php get_instance()->view('common/header');?>
<style type="text/css">
    <!--
    .text-val {
        padding-top: 3px;
        padding-left: 0;
    }

    .text-label {
        color: grey;
        text-align: right;
    }

    .btn-group, .btn-group-vertical {
        display: inline-block;
        position: absolute;
        vertical-align: middle;
    }

    .sale-summary li:first-child {
        border-top: medium none;
    }

    .sale-summary li {
        border-top: 1px solid #eee;
        overflow: hidden;
        padding: 10px 0;
    }

    .sale-summary li .sale-info {
        color: #646464;
        float: left;
        font-size: 14px;
        text-transform: uppercase;
    }

    .sale-summary li .sale-num {
        color: #169ef4;
        float: right;
        font-size: 20px;
        font-weight: 300;
    }

    .description-box img {
        width: 100%;
    }
    -->
</style>
<style type="text/css">
    div .radio-inline:nth-child(2), div .checkbox-inline:nth-child(2) {
        margin-left: 10px;
    }
    div.form-body>.tab-pane{display: none}
    div.form-body>.tab-pane.active{display: block}

    .table-scrollable > .table > thead > tr > th, .table-scrollable > .table > tbody > tr > th, .table-scrollable > .table > tfoot > tr > th, .table-scrollable > .table > thead > tr > td, .table-scrollable > .table > tbody > tr > td, .table-scrollable > .table > tfoot > tr > td{
        word-break:break-all;
    }
</style>
<div class="page-container home">
    <?php get_instance()->view('common/sidebar');?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title"><?php echo $title?></h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li class="btn-group"> <a class="btn default ml_5 return" href="<?php echo getUrl('member/consumer');?>"><i class="fa fa-chevron-left"></i> 返回</a> </li>
                        <li> <i class="fa fa-home"></i> <a href="<?php echo getUrl('consumer');?>"> 消费者列表  <i class="fa fa-angle-right"></i> </a></li>
                        <li><a href="javascript:void(0);">详情</a></li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="row">
                        <div class="col-md-12 profile-info">
                            <div class="row">
                                <div class="col-md-12">
                                    <div style="border: 1px solid #ddd; padding: 10px; margin-bottom: 30px;">
                                        <div class="row">
                                            <div class="col-md-1">
                                                <img src="<?php echo $info['portrait']['og']?>" class="img-responsive" alt="">
                                            </div>
                                            <div class="col-md-11">
                                                <div class="row">
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">昵称：</label>
                                                            <div class="col-md-8 text-val nickname"><?php echo $info['nickname'];?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">姓名：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['realname'];?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">手机号码：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['mobile'];?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">余额：</label>
                                                            <div class="col-md-8 text-val balance"><?php echo $info['balance'];?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">性别：</label>
                                                            <div class="col-md-8 text-val"><?php if($info['gender']>0){echo $info['gender']==1 ? '男' : '女';}else{echo '保密';}?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">是否允许消息推送：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['message_push']==1 ? '不允许' : '允许';?></div>
                                                        </div>
                                                    </div>
<!--                                                    <div class="col-md-6">-->
<!--                                                        <div class="form-group">-->
<!--                                                            <label class="col-md-4 control-label text-label">积分：</label>-->
<!--                                                            <div class="col-md-8 text-val integral">--><?php //echo $info['integral'];?><!--</div>-->
<!--                                                        </div>-->
<!--                                                    </div>-->
<!--                                                    <div class="col-md-6">-->
<!--                                                        <div class="form-group">-->
<!--                                                            <label class="col-md-4 control-label text-label">经验值：</label>-->
<!--                                                            <div class="col-md-8 text-val">--><?php //echo $info['experience_value'];?><!--</div>-->
<!--                                                        </div>-->
<!--                                                    </div>-->
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">状态：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['status']==1 ? '禁用' : '启用';?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">注册时间：</label>
                                                            <div class="col-md-8 text-val"><?php echo dateFormat($info['addtime']);?></div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--end col-md-8-->
                    </div>
                    <!--end row-->
                    <div class="tabbable tabbable-custom tabbable-custom-profile">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#tab_1_1" data-toggle="tab"> 用户订单 </a></li>
                            <li><a href="#tab_1_2" data-toggle="tab"> 售后订单 </a></li>
                            <li><a href="#tab_1_3" data-toggle="tab"> 资金明细 </a></li>
                            <li><a href="#tab_1_8" data-toggle="tab"> 红包明细 </a></li>
                            <li><a href="#tab_1_9" data-toggle="tab"> 包邮卡明细 </a></li>
<!--                            <li><a href="#tab_1_4" data-toggle="tab"> 积分明细 </a></li>-->
                            <li><a href="#tab_1_5" data-toggle="tab"> 银行卡(支付宝) </a></li>
                            <li><a href="#tab_1_6" data-toggle="tab">收货地址</a></li>
<!--                            <li><a href="#tab_1_7" data-toggle="tab">经验值明细</a></li>-->
                        </ul>
                        <div class="tab-content">
                            <!--用户订单-->
                            <div class="active tab-pane" id="tab_1_1">
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_order">
                                            <thead>
                                            <tr role="row" class="heading">
                                                <th width="20%"> 订单号</th>
                                                <th width="10%"> 商家</th>
                                                <th width="10%">消费模式</th>
                                                <th width="10%">订单金额</th>
                                                <th width="10%">实付金额</th>
                                                <th width="10%">支付方式</th>
                                                <th width="10%">下单时间 </th>
                                                <th width="10%">状态</th>
                                                <th width="10%"> 操作</th>
                                            </tr>
                                            <tr>
                                                <th><input class="form-control form-filter input-sm" name="orderCode" type="text"></th>
                                                <th><input class="form-control form-filter input-sm" name="merchant" type="text"></th>
                                                <th>
                                                    <select name="expenseType" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php foreach ($expenseType as $ke => $e):?>
                                                            <option value="<?php echo $ke;?>"><?php echo $e;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="amount_from" placeholder="大于等于" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="amount_to" placeholder="小于等于" type="text" ></th>
                                                </th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="reality_amount_from" placeholder="大于等于" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="reality_amount_to" placeholder="小于等于" type="text" ></th>
                                                </th>
                                                <th>
                                                    <select name="payType" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php foreach ($payType as $k => $v):?>
                                                            <option value="<?php echo $k+1;?>"><?php echo $v;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="add_time_from" dp placeholder="从" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="add_time_to" dp placeholder="到" type="text" ></th>
                                                </th>
                                                <th>
                                                    <select name="orderStatus" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php foreach ($status as $k => $v):?>
                                                            <option value="<?php echo $k;?>"><?php echo $v;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th>
                                                    <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default"><i class="fa fa-search"></i> 搜索</a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li><a href="javascript:void(0);" class="filter-cancel">重置</a></li>
                                                        </ul>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <!--售后列表-->
                            <div class="tab-pane" id="tab_1_2">
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <div class="table-actions-wrapper"> <span> </span></div>
                                        <table class="table table-bordered table-hover" id="datatable_service">
                                            <thead>
                                            <tr role="row" class="heading">
                                                <th width="11%">订单号</th>
                                                <th width="11%">所属单号</th>
                                                <th width="30%">退款商品</th>
                                                <th width="10%">退款原因</th>
                                                <th width="8%">退款金额</th>
                                                <th width="10%">申请时间</th>
                                                <th width="10%">状态</th>
                                                <th width="10%">操作</th>
                                            </tr>
                                            <tr>
                                                <th><input class="form-control form-filter input-sm" name="serviceCode" type="text"></th>
                                                <th><input class="form-control form-filter input-sm" name="orCode" placeholder="" type="text"></th>
                                                <th><input class="form-control form-filter input-sm" name="productName" placeholder="" type="text"></th>
                                                <th></th>
                                                <th></th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="service_add_time_from" dp placeholder="大于等于" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="service_add_time_to" dp placeholder="小于等于" type="text" ></th>
                                                </th>
                                                <th>
                                                    <select name="serviceType" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php foreach ($serviceType as $k => $v):?>
                                                            <option value="<?php echo $k;?>"><?php echo $v;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th>
                                                    <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default"><i class="fa fa-search"></i> 搜索</a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li><a href="javascript:void(0);" class="filter-cancel">重置</a></li>
                                                        </ul>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <!--资金明细明细-->
                            <div class="tab-pane" id="tab_1_3">
                                <div class="table-actions-wrapper " style="float: right">
                                    <?php if (adminAuthority('consumer-found','member')):?>
                                    <a class="btn btn-sm blue add-found-btn" href="javascript:;" consumer_id = "<?php echo get('id')?>"><i class="fa fa-plus"></i> 资金调节</a>
                                    <?php endif;?>
                                </div>
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_found">
                                            <thead>
                                            <tr role="row" class="heading">
                                                <th width="23%"> 类型</th>
                                                <th width="23%">金额</th>
                                                <th width="23%">状态</th>
                                                <th width="21%">添加时间</th>
                                                <th width="10%">操作</th>
                                            </tr>
                                            <tr>
                                                <th>
                                                    <select name="found_type" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php  foreach ($found_type as $k=>$item):?>
                                                            <option value="<?php echo $k;?>" ><?php echo $item;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th></th>
                                                <th>
                                                    <select name="found_status" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php  foreach ($found_status as $k=>$item):?>
                                                            <option value="<?php echo $k;?>" ><?php echo $item;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="addtime_from" dp placeholder="从" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="addtime_to" dp placeholder="到" type="text">
                                                </th>
                                                <th> <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default">
                                                            <i class="fa fa-search"></i> 搜索
                                                        </a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li>
                                                                <a href="javascript:void(0);" class="filter-cancel">重置</a>
                                                            </li>
                                                        </ul>
                                                    </div></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <!--积分明细-->
                            <div class="tab-pane" id="tab_1_4">
                                 <div class="table-actions-wrapper " style="float: right">
                                    <a class="btn btn-sm blue add-integral-btn" href="javascript:;" consumer_id = "<?php echo get('id')?>"><i class="fa fa-plus"></i> 积分调节</a>
                                </div>
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_integral">
                                            <thead>
                                            <tr role="row" class="heading">
                                                <th width="23%"> 类型</th>
                                                <th width="23%">订单号</th>
                                                <th width="23%">积分数量</th>
                                                <th width="21%">状态</th>
                                                <th width="10%">操作</th>
                                            </tr>
                                            <tr>
                                                <th>
                                                    <select name="type" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php  foreach ($integral_type as $k=>$item):?>
                                                            <option value="<?php echo $k;?>" ><?php echo $item;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th><input class="form-control form-filter input-sm" name="code" type="text"></th>
                                                <th></th>
                                                <th>
                                                    <select name="status" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php  foreach ($integral_status as $k=>$item):?>
                                                            <option value="<?php echo $k;?>" ><?php echo $item;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th>
                                                    <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default">
                                                            <i class="fa fa-search"></i> 搜索
                                                        </a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li>
                                                                <a href="javascript:void(0);" class="filter-cancel">重置</a>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <!--银行卡支付宝-->
                            <div class="tab-pane" id="tab_1_5">
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_account">
                                            <thead>
                                            <tr role="row" class="heading">
                                                <th width="10%"> 类型</th>
                                                <th width="20%"> 开户名(支付宝用户名)</th>
                                                <th width="20%">银行卡号(支付宝账号)</th>
                                                <th width="20%">开户行( 支付宝)</th>
                                                <th width="20%">联系电话</th>
                                                <th width="10%">操作</th>
                                            </tr>
                                            <tr>
                                                <th>
                                                    <select name="bank_type" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <option value="1">银行卡</option>
                                                        <option value="2">支付宝</option>
                                                    </select>
                                                </th>
                                                <th><input class="form-control form-filter input-sm" name="account_name" type="text"></th>
                                                <th><input class="form-control form-filter input-sm" name="account_number" type="text"></th>
                                                <th></th>
                                                <th><input class="form-control form-filter input-sm" name="mobile" type="text"></th>
                                                <th> <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default">
                                                            <i class="fa fa-search"></i> 搜索
                                                        </a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li>
                                                                <a href="javascript:void(0);" class="filter-cancel">重置</a>
                                                            </li>
                                                        </ul>
                                                    </div></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <!--收货地址-->
                            <div class="tab-pane" id="tab_1_6">
                                <div class="table-actions-wrapper " style="float: right">
                                    <?php if (adminAuthority('consumer-address','member')):?>
                                    <a class="btn btn-sm blue add-address-btn" href="javascript:;" consumer_id = "<?php echo get('id')?>"><i class="fa fa-plus"></i> 添加收货地址</a>
                                    <?php endif;?>
                                </div>
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_address">
                                            <thead>
                                                <tr role="row" class="heading">
                                                    <th width="15%"> 收货人</th>
                                                    <th width="15%"> 电话</th>
                                                    <th width="20%"> 区域</th>
                                                    <th width="20%"> 详细地址 </th>
                                                    <th width="20%"> GPS </th>
                                                    <th width="10%"> 操作 </th>
                                                </tr>
                                                <tr>
                                                    <th><input class="form-control form-filter input-sm" name="consignee" type="text"></th>
                                                    <th><input class="form-control form-filter input-sm" name="address_mobile" type="text"></th>
                                                    <th></th>
                                                    <th><input class="form-control form-filter input-sm" name="address" type="text"></th>
                                                    <th></th>
                                                    <th> <div class="btn-group">
                                                            <a class="btn btn-xs filter-submit btn-default"><i class="fa fa-search"></i> 搜索</a>
                                                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                            <ul role="menu" class="dropdown-menu pull-right">
                                                                <li><a href="javascript:void(0);" class="filter-cancel">重置</a></li>
                                                            </ul>
                                                        </div>
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <!--经验值明细-->
                            <div class="tab-pane" id="tab_1_7">
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_experience">
                                            <thead>
                                            <tr role="row" class="heading">
                                                <th width="30%"> 类型</th>
                                                <th width="30%">经验值</th>
                                                <th width="30%">添加时间</th>
                                                <th width="10%">操作</th>
                                            </tr>
                                            <tr>
                                                <th>
                                                    <select name="experience_type" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php  foreach ($experienceType as $k=>$v):?>
                                                            <option value="<?php echo $k;?>" ><?php echo $v;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>
                                                <th></th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="experience_time_from" dp placeholder="大于等于" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="experience_time_to" dp placeholder="小于等于" type="text" ></th>
                                                </th>
                                                <th>
                                                    <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default">
                                                            <i class="fa fa-search"></i> 搜索
                                                        </a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li>
                                                                <a href="javascript:void(0);" class="filter-cancel">重置</a>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <div class="tab-pane" id="tab_1_8">
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_bonus">
                                            <thead>
                                                <tr role="row" class="heading">
                                                    <th width="10%">红包名称</th>
                                                    <th width="10%">优惠金额</th>
                                                    <th width="10%">使用金额</th>
                                                    <th width="20%">添加时间</th>
                                                    <th width="20%">截止时间</th>
                                                    <th width="10%">状态</th>
                                                    <th width="10%">操作</th>
                                                </tr>
                                            <tr>
                                                <th><input class="form-control form-filter input-sm" name="name" type="text"></th>
                                                <th></th>
                                                <th></th>
                                                <th>
                                                    <div class="margin-bottom-5">
                                                        <input class="form-control form-filter input-sm" name="addtime_from" dp placeholder="开始" type="text">
                                                    </div>
                                                    <input class="form-control form-filter input-sm" name="addtime_to" dp placeholder="结束" type="text" >
                                                </th>
                                                <th></th>
                                                <th>

                                                    <select name="status" class="form-control form-filter input-sm">
                                                        <option value="" selected="selected">所有</option>
                                                        <?php  foreach ($bonusStatus as $k=>$v):?>
                                                            <option value="<?php echo $k;?>" ><?php echo $v;?></option>
                                                        <?php endforeach;?>
                                                    </select>
                                                </th>

                                                <th>
                                                    <div class="btn-group">
                                                        <a class="btn btn-xs filter-submit btn-default">
                                                            <i class="fa fa-search"></i> 搜索
                                                        </a>
                                                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                        <ul role="menu" class="dropdown-menu pull-right">
                                                            <li>
                                                                <a href="javascript:void(0);" class="filter-cancel">重置</a>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </th>

                                            </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="tab_1_9">
                                <div class="table-responsive">
                                    <div class="table-container">
                                        <table class="table table-bordered table-hover" id="datatable_postcard">
                                            <thead>
                                                <tr role="row" class="heading">
                                                    <th width="10%">包邮卡名称</th>
                                                    <th width="10%">券面额</th>
                                                    <th width="20%">添加时间</th>
                                                    <th width="20%">截止时间</th>
                                                    <th width="10%">状态</th>
                                                </tr>
                                            </thead>
                                            <tbody></tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php get_instance()->view('member/consumer/address_form');?>
<?php get_instance()->view('member/consumer/found_form');?>
<?php get_instance()->view('member/consumer/integral_form'); // 调节积分?>
<script type="text/javascript">
    var id = <?php echo $info['id'];?>;
    $(function(){
        datatable_init({
            src: $("#datatable_order"),
            sAjaxSource: "<?php echo getUrl('member/consumer/orderList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,5,7,8]
            }]
        });

        // 订单售后
        datatable_init({
            src: $("#datatable_service"),
            sAjaxSource: "<?php echo getUrl('member/consumer/serviceList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,3,6,7]
            }]
        });

        datatable_init({
            "sDom": "<'row'<'col-md-5 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>",
            src: $("#datatable_address"),
            sAjaxSource: "<?php echo getUrl('member/consumer/addressList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,3,4,5]
            }]
        });

        datatable_init({
            src: $("#datatable_account"),
            sAjaxSource: "<?php echo getUrl('member/consumer/bankCardList?consumer_id=');?>"+id,
            bSort:false
        });

        // 积分
        datatable_init({
            src: $("#datatable_integral"),
            sAjaxSource: "<?php echo getUrl('member/consumer/integralLogList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,3,4]
            }]
        });

        datatable_init({
            "sDom": "<'row'<'col-md-5 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>",
            src: $("#datatable_found"),
            sAjaxSource: "<?php echo getUrl('member/consumer/FoundLogList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,2,4]
            }]
        });

        // 经验值
        datatable_init({
            "sDom": "<'row'<'col-md-5 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>",
            src: $("#datatable_experience"),
            sAjaxSource: "<?php echo getUrl('member/consumer/getExperienceValueList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,3]
            }]
        });
        // 红包
        datatable_init({
            "sDom": "<'row'<'col-md-5 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>",
            src: $("#datatable_bonus"),
            sAjaxSource: "<?php echo getUrl('member/consumer/getBonusValueList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,3,4,5,6 ]
            }]
        });
        // 包邮卡
        datatable_init({
            "sDom": "<'row'<'col-md-5 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>",
            src: $("#datatable_postcard"),
            sAjaxSource: "<?php echo getUrl('member/consumer/getpostcardValueList?consumer_id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,3,4]
            }]
        });
        $('[dp]').not("[noinit]").datepicker({
            changeMonth: true,
            autoclose: true,
            format: "yyyy-mm-dd",
            language: 'zh-CN'
        });
    });

    function ajaxRequestCallBack(e) {
        $("#datatable_order").dataTable().fnDraw();
        if(e.data == 'bonus'){
            $('#datatable_bonus').dataTable().fnDraw(true); // 红包
        }
    }

</script>
</body>
</html>